package com.etc.service;

import com.etc.dao.RoomDao;
import com.etc.entity.RoomInfo;
import com.etc.entity.RoomType;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoomServiceImpl implements RoomService{
    //调用持久层
    @Autowired
    RoomDao dao;

    @Override
    public List<RoomInfo> getAllRoomInfo() {
        return dao.queryAllRoomInfo();
    }
}
